<#import "/spring.ftl" as s/>
<@override name="main">
<div id="account_toolbar" art="toolbar">
	<div position="left">
		<button id="account_add" text="<@s.message "operation.insert"/>" onclick="account_list.add()"
				icon="add" tooltip="<@s.message "tip.account.add"/>">
		</button>

	</div>
	<div position="right" >
        <button id="account_import" text="<@s.message "operation.import"/>" onclick="account_list.importTeam()">
        </button>

		<div category="origin">
			<input id="search" name="search" required='false' type="text" art="textbox"/>
			<input art="button" id="project_search" name="project_search" text="<@s.message "project.search"/>" icon="search" onclick="account_list.fuzzy_search()">
		</div>
	</div>
</div>

<div id="account_list">
</div>

<div id="upload_file" art="layer">
    <form id="import_form" action="<@s.url '/account/import'/>" method="post" enctype="multipart/form-data">
        <table art="form" columns="120,*" autoLabel="true" rightAlign="true" colon="true">
			<tr>
				<td colspan="2" style="background:#fffcef;" title="<@s.message 'account.list.import.file.tip'/>">
					<@s.message 'account.list.import.file.tip.msg'/>
				</td>
			</tr>
			<tr>
				<td>
                    <label art='label' for="attachment" required='true'><@s.message "account.list.import.file"/></label>
				</td>
				<td>
                    <input id="attachment" name="attachment" type="file" required='true'>
				</td>
			</tr>
			<tr>
				<td></td>
				<td align="center">
                    <button id="upload_file_button" type="submit">
                        <span><span><@s.message 'operation.import'/></span></span>
                    </button>
					<span style="width:10px;"></span>
                    <button id="upload_file_cancel" type="button">
                        <span><span><@s.message 'operation.cancel'/></span></span>
                    </button>
				</td>
			</tr>
        </table>
    </form>
</div>
</@override>
<@override name="scripts">
<script type="text/javascript">
    var js_param = {
        image_url :'<@s.url '/resources/common/images'/>'
    }
</script>
<script type="text/javascript" src="<@s.url '/resources/scripts/account/list.js'/>"></script>
</@override>
<@extends name="/common/layout.ftl" current="users" title="account.location.list"></@extends>